package com.member.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizRaffleActivity;
import com.member.shop.domain.SysBizRafflePrize;

import java.util.List;


/**
 * 抽奖活动Mapper接口
 *
 * @author lxc
 * @date 2024-03-13
 */
public interface SysBizRaffleActivityMapper extends BaseMapper<SysBizRaffleActivity> {
    /**
     * 查询抽奖活动
     *
     * @param id 抽奖活动主键
     * @return 抽奖活动
     */
    public SysBizRaffleActivity selectSysBizRaffleActivityById(Long id);

    /**
     * 查询抽奖活动列表
     *
     * @param sysBizRaffleActivity 抽奖活动
     * @return 抽奖活动集合
     */
    public List<SysBizRaffleActivity> selectSysBizRaffleActivityList(SysBizRaffleActivity sysBizRaffleActivity);

    /**
     * 新增抽奖活动
     *
     * @param sysBizRaffleActivity 抽奖活动
     * @return 结果
     */
    public int insertSysBizRaffleActivity(SysBizRaffleActivity sysBizRaffleActivity);

    /**
     * 修改抽奖活动
     *
     * @param sysBizRaffleActivity 抽奖活动
     * @return 结果
     */
    public int updateSysBizRaffleActivity(SysBizRaffleActivity sysBizRaffleActivity);

    /**
     * 删除抽奖活动
     *
     * @param id 抽奖活动主键
     * @return 结果
     */
    public int deleteSysBizRaffleActivityById(Long id);

    /**
     * 批量删除抽奖活动
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizRaffleActivityByIds(Long[] ids);

    /**
     * 根据活动id获取奖品信息
     */
    List<SysBizRafflePrize> prizeByActivityId(Long activityId);
}
